package mock.servicesdirectory.test.business;

import java.util.List;

import mock.servicesdirectory.common.entities.UserInfo;
import mock.servicesdirectory.test.dao.IUserDao;

public class UserBo implements IUserBo {
	private IUserDao dao;
	
	/**
	 * @param dao the dao to set
	 */
	public void setDao(IUserDao dao) {
		this.dao = dao;
	}

	/**
	 * @return the dao
	 */
	public IUserDao getDao() {
		return dao;
	}

	public boolean isAuthentication(String userName, String password) {		
		return dao.isAuthentication(userName, password);
	}

	public List<UserInfo> getUserInfos() {		
		return dao.getUserInfos();
	}

}
